home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
CURVOL.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
43 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_CurVol() --> cDriveLette
PARAMETERS:
None
SHORT:
Return the current DOS drive letter.
DESCRIPTION:
_CurVol() returns the drive letter of the currently logged drive.
NOTE:
This function uses an external DOS command to work. You must
therefore reserve enough conventional RAM to load COMMAND.COM in the Clipper
R variable (SET CLIPPER= r045). Different versions of DOS require
different amounts of RAM to load the Command Interpreter. Refer to your
DOS Manual for information.
A good guide is the size of the COMMAND.COM of your version of DOS.
This number is a little high, but should be safe for practical application.
You may also use the DOS command MEM /C (in DOS version 5.0 or higher) to
see what the actual size of the Command Interpreter is for your version
of DOS).
EXAMPLE:
Current_Drive = _CurVol()
Result: 'C' (assuming drive C: is the current drive)
******************************************************************************/